package com.casstime.ec.cloud.values.amountPromotion;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.casstime.ec.cloud.values.Value;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

import lombok.Getter;
import lombok.Setter;
/**
 * ClassName: AmountPromotion 
 * Function: (满减活动实体类)
 * Reason: ADD REASON(可选).
 *  
 * @author wu.chen 
 * 2018年2月28日 下午1:45:45
 * @version   
 * @since JDK 1.8
 */
@JsonIgnoreProperties(ignoreUnknown = true)//忽略类中不存在的字段，比如json字符串中有个aaa:123,则不会进行转换
@JsonInclude(value = Include.NON_NULL)
public class AmountPromotion implements Value {
	
	@Getter @Setter private String id;
	@Getter @Setter private String promotionCode;
	@Getter @Setter private String promotionName;
	@Getter @Setter private String productStoreId;
	@Getter @Setter private String targetCustomer;
	@Getter @Setter private String targetPlatform;
	@Getter @Setter private String promotionType;
	@Getter @Setter private String promotionBudget;
	@Getter @Setter private BigDecimal excessBudget;
	@Getter @Setter private Date effectDate;
	@Getter @Setter private Date expireDate;
	@Getter @Setter private String promotionStatus;
	@Getter @Setter private Date lastUpdatedStamp;
	@Getter @Setter private String lastUpdatedBy;
	
	@Getter @Setter private List<AmountPromotionConfigAmount> promotionAmounts;
	@Getter @Setter private List<AmountPromotionConfig> promotionConfigs;
	
	@Getter @Setter private Integer orderTotal; //订单总量
	
	@Getter @Setter private BigDecimal amountTotal; //实际立减金额
	
	@Getter @Setter private BigDecimal avgAmount; //活动订单平均客单价
	
	@Getter @Setter private Integer firstOrderNum; //首次交易订单量

	@Override
	public boolean validate() {
		// TODO Auto-generated method stub
		return false;
	}
}
